Fix to #159 - Invalid user photos error throwing

I couldn't find any complete lists of possible errors so I made a generic error thingy.