Streamline the build setup, enable JPEG and PNG support