Fix for editing photos, bug fixed.