raster_to_array function

Convert from a (small-r) raster object to an RGB array