Round position down so it doesn't go off image