add images json routes @ /images with get and post methods