load png function temporarily thows an unimplemented error when called