Ajax image upload and crop widget