fixing bugs and image attachment post styling