change wpFile to image