Changed y direction to render top to bottom