Fixed handling of overloaded key mappings

Issue described here:
https://bbs.archlinux.org/viewtopic.php?pid=1117294#p1117294
Apply flip & rotation on all frames of a multi-frame image; fixes issue #121