Added photo type in check for images