Image ordering for single posts

Modified the getPostAttacments function to listen to the order the
images are arranged in the media section to load them accordingly