Hi Olgierd,
You cannot promote an attachment field in InfoPath - it's something that's not supported when publishing InfoPath to SharePoint.
We do have a tool called qRules that can convert images and attachments to link and upload them to a separate library in SharePoint. That should allow you to publish the link field to your SharePoint library. Clicking the link will open the attachment in the browser. I think that should meet your requirement.
You can download and try qRules for free here.
Thanks,
Jo-Anne