Images in p5.js and objects. You don't need the objects part.
Example of how to load images.
How to access pixels within an image.
Download the dice images here.