Your mod_rewrite code should provide i/profile.php with the $_GET array with key of id.
The reason for your images (not to mention js, css, etc., files) is that you’re changing the directory level with your redirection. See Missing Support Files in my signature’s tutorial for workarounds.