fixed alignment issues in photos