Fixed issue with color type image