[BUGFIX] Fixes error callback handling for images with 404 response