Edited image enlarging JS for new S# stuff