public static int loadImages()
    {
        _images = new HashMap<String, BufferedImage>();

        int failureCount = 0;
        Field[] fields;

        int modifiers;
        Object value;
        String imageName;

        fields = ImageLib.class.getDeclaredFields();

        for (Field field : fields)
        {
            // We only want the public static final fields.
            modifiers = field.getModifiers();
            if (Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers)
                    && Modifier.isFinal(modifiers))
            {
                // All elements that make it this far should refer to valid
                // images.
                try
                {
                    value = field.get(null);
                    if (String.class.isInstance(value))
                    {
                        imageName = (String) value;
                        addImage(imageName);
                    }
                } catch (NullPointerException | IllegalArgumentException
                        | IllegalAccessException | IOException e)
                {
                    // Something loaded incorrectly. We won't blow up yet, but
                    // we'll let the tester know something is broken.
                    failureCount++;
                }
            }
        }

        return failureCount;
    }