Made it so you can pass in an array of already loaded images