This is how the code from default user_loginform.html template looks like after it was parsed:
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" align="left">
<form action="login.php" method="post">
User name<br />
<input type="text" size="10" name="user_name" class="logininput" />
<br />
Password<br />
<input type="password" size="10" name="user_password" class="logininput" />
<br />
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td><input type="checkbox" name="auto_login" value="1" /></td>
<td><span class="smalltext">Remember me</span></td>
</tr>
</table>
<br />
<input type="submit" value="Login" class="button" />
</form>
</tr>
</table>
You can place this code outside your 4images, but make sure the form has correct path to login.php.
P.S. by default 4images might not redirect you to the right page after the login.