added json errors for /image/