displayed image is now preprocessed by server, example checking right image format.
Image is also being resized to fit the preview window and support for different aspect ratio has been added.