Bug fix

Fix bug while creating several cached images from one source image