removed debug messages from convert_image