fix bug where binary photos would raise an error