Fixed gallery

Fixed gallery creation as gallery looks for width first in filename
![jre](https://f.cloud.github.com/assets/1492067/1492632/13ac286e-47c3-11e3-9be7-7c9326ac81e8.gif)