Fixes an issue with black thumbnails