added BytesPerPixel to Constants