Disabled automatic rotation of the image on open

It is made optional. I know it looks ugly as the callback is not the last argument to createFromPtr(), but I couldn't make an optional parameter to be not the last.