Fix buggy pixel origin