closed #3804: Change Image private function and variable to protected, for the subclasses can use them.
Merge pull request #5946 from boyu0/iss3804_change_image_private_to_protected

closed #3804: Change private functions and variables in Image class to protected, since its subclasses may need them.