Added PNG and BMP saving.