Bug fix for previous commit of 2x pixel ratio support