Fix imagesData in posts without images. Fixes #532