Copied ajax request to custom format images for photo_module