Calculate histogram at runtime.
Read all image data from PNG files.