Update to mediaItem handling of width and height, were casted as ints and not strings. I wonder whether this changes with WP versions
Added link field to post which is populated with the permalink