getting pixels right