Detect black images
color check fix
remove debug messages