error callback should still provide image element

for consistency