Fix a crashier due to images with abnormal size