added & implemented image cache class