Is there a function for reading images into 2d arrays? If there is, mind pointing me towards it? Thanks.