Note that I have created a vote to agree on an option: Image Style serialization class vs data attribute