add a conditional to only add mega images to the array.