Fix firefox bug on thumnails and images