no more attr.img path and extension assumptions