fixed issue where cap JPG wouldn't show