fixing image name bug