fix variable names for img