Fixes #3128 - add json format back to images_controller

(cherry picked from commit 11a8ab90f30fe691bf4a8ea4b2b1b3e770820061)