Corrected an issue with casting and object slicing.
Pi now shows up at correct position but the image top left is always 0, 0