Now it draws images correctly!