fix when image is nil on attachment_url