code cleanup, initial checkin of dimagi_utils tests for cached images