add pixelAccess and histogram