Fixed specs for img_ functions.