convertToTif now properly receives the targetDimensions argument