added support for multiple images per post