Min / Max typo in DrawToImage, fixes #24