Refactor of Picture#as_json & Post#as_json