fixed image file issues with histogram