Updated tile engine to fix flicker and parallax image with multiple layers issue