small fix to attachment_image_url function