Fixed image too large error not being thrown when using rotation.