The given image is now rotated by 90 deg when attempting to send it to the epaper. This function was initally in main, but has been shifted.