changed to media_helpers from photo_helper, updated with documentation,
and made variable names more explicit