write optipng file to dst_path (fix problem with uploading to s3)