Possible performance issue is when latte template tries to generate a lot of images, every image needs to be a Image or LocaleImage entity.
In that case is appropriate to use a DQL with joins to real_path column and use real path as first argument in latte filters, so there is required some cache system for caching links according to real path, width, height and resize type.