add imageclass, callback and resourceData