I Have an upload script that resizes the images uploaded, however, some images are being saved as a rotated image when i dont want them to, any way to preserve the original
The EXIF data is probably being ignored by this basic script.
Investigate whether your images have embedded rotation information using exif_read_data, and then auto-correct the rotation with a function like this.
In your case,
$image-> bits to $resizeObj->%s/image->/resizeObj->/g)