Adds image resizing via ajax