added 5box and converted images to grayscale