Upload your picture then scale it inside a png background using canvas html5
then save those two images in one image and upload into server.
I have done the scaling part and stock with marge those two images together. I heard it needs canvas but couldn't do it.
that's a good example of what i want [url removed, login to view]