added in x and y mirror to screen render function