fix for average luminance calculation when hdr images contain negative
values
changed hasAlpha to hasAlphaChannel
moved the find next image function into DisplaySlot
added caching for images