Added extra configs to fix issue with transparent backgrounds. refs #19652
Use id in url instead of filename (gave issues when protected attachments with same filename).