@staticmethod<EOL><INDENT>def createPhoto(resolution):<DEDENT>
if resolution in PHOTO_QUALITIES:<EOL><INDENT>return MediaSettings(photoQuality=PHOTO_QUALITIES[resolution], photoResolution=resolution)<EOL><DEDENT>else:<EOL><INDENT>raise BadRequest('<STR_LIT>')<EOL><DEDENT>
Returns a :class:`~plexapi.sync.MediaSettings` object, based on provided photo quality value.

            Parameters:
                resolution (str): maximum allowed resolution for synchronized photos, see PHOTO_QUALITY_* values in the
                                  module.

            Raises:
                :class:`plexapi.exceptions.BadRequest` when provided unknown video quality.