Rename variable name "ptr" to "pixel_reference"

There are same name method ptr.