making image save return image object and adding to page on ajax upload