image connection to posts now works as supposed to