Fixes #3128 - add json format back to images_controller