sidebar : get image attachment rather than custom field image