The error means that when you compiled Imager, you didn't have libpng installed on your system, so png support was skipped. Install the full libpng ( some distros separate the development headers into something like libpng-devel. Just google
for libpng, compile it, install it, then rebuild Imager.