PreloadImages method will auto-flatten the input array

Closes #42