Fix bug for image