fixed a bug that stops the app when a total black image is loaded