Fixed cache bug in image resources