Make gallery draw itself using promises
Adjust looping for gallery images