increasing performance thumbnail generation (from jellybean-mr1)