I think you are wrong. Have a look at OC_Image->data() :
https://github.com/owncloud/core/blob/master/lib/private/image.php#L242.