Fix for images with not enough resolution layers