Fixed issue that prevented photo from being saved.