Added possibility to define pixel density for retina displays.