xoffset and yoffset should reset after each file in queue