Fix bug in ion disk cache optimization.
Only use the cache for transformed images.

Change-Id: I87c7cda8774ea43287e8df41dadad6bfd525422f