Fix bug #137: unable to store snapshots of live view on MacOS X

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Merge pull request #139 from vogel/fix-137

Fix bug #137: unable to store snapshots of live view on MacOS X