handle cached images