FIX: Fix windows compilation

Add parenthesis around cast expression.
Merge pull request #301 from vovythevov/fix-merge-adjacent-image-windows-build

FIX: Fix windows compilation