Yes that fixed it.
I thought that all the images were the same size but some are rotated so it was a 800x600 and 600x800 in the folder which messed things up. I though it would automatically adjust for it but apparently not,
Thank you I appreciate it.