Issue/451 data attribute instead of

Solves #451 by using a data attribute instead of id to identify images.
Yeah I imagined... I think that simply re-adding this would be ok.  Thanks!