image cache method

Signed-off-by: Sam <sam@ozchamp.net>