I\'m looking for a way to convert a RGB image to bytes. I;ve tried with .tobytes() - however, it didn\'t work out as it seems to only applies for 1D.