Saving image sprite on server

I am using draw component to draw image sprite.This image is an image of a document say photograph or driving license.
I am able to rotate,scale and translate this image. now i want to save the modified image data (resized or rotated) on the server and i don't know how to do it and am not finding any instance of it anywhere on the web.
I have no clue how can i achieve this? can anyone please help me in saving the new modified image on server, please?