Fixed specs for img functions.