fixed more issues with iplimage conversion