Justin Bieber has vowed he will "never again" go to prison after sharing two of his 2014 mugshots on Instagram.