Fix -1 offset to images