eliminate image 500 server exception