Fixed issue related to resizeForHDPI.