[BUG FIX] color and gray scale image not rendering properly issue resolved