fix up bug for creating img