Upload images using jQuery ajax functions..
Based on: http://www.sanwebe.com/2012/05/ajax-image-upload-and-resize-with-jquery-and-php