Attached jpg images look corrupt