Fixed a bug that was returning all black images all the time