While I like the simplicity of this, I would recommend to keep accessibility in mind: information put into a data attribute will not be accessible to screenreaders, and they would miss any information stored via this method.
It may make sense to append the label information to whatever is being used for the image's ALT attribute.
It may make sense to append the label information to whatever is being used for the image's ALT attribute.