Initial setup for converting images to arrays