fixing error on image uploaded to be more expressive