fixes #1 (exception thrown if it is a image)