correct image drawing, was only working for square images