Create convertPng method.