switched dpi and densityFactor