fix to removal of photos