Minor bug-fix with color images
One syntax error and added image bw conversion