Fix resize for picture elements