Helper for resize png images for needed DPIs