Improve robustness of .img-polaroid styles