[Bug Fix] It should not modify the size of resource without dpi parameter