Trying to remove some redundancy from the dynamic image solution.