title: Problem with float and pictures in LaTex
body: <p>The picture is at the position of the header:
  <a href="http://dl.getdropbox.com/u/175564/%20latex1.png" rel="nofollow noreferrer">http://dl.getdropbox.com/u/175564/%20latex1.png</a></p>
  
  <p>Code:</p>
  
  <pre><code>\begin{figure}
     \subfloat[A gull]{\label{fig:gull}\includegraphics[width=0.15\textwidth]{p1.png}}
     \subfloat[A tiger]{\label{fig:tiger}\includegraphics[width=0.15\textwidth]{p2.png}}
     \caption{Pictures of animals}      
     \label{fig:animals}      
  \end{figure}
  </code></pre>
  
  <p>Code before \begin{document}:</p>
  
  <pre><code>\documentclass[12pt,a4paper, notitlepage]{article}
  \usepackage[english]{babel}           
  \usepackage[latin1]{inputenc}   
  
  \usepackage{amsmath}            
  \usepackage{amsfonts}           
  \usepackage{amssymb}
  
  \usepackage{graphicx}
  \usepackage{amsthm}
  \usepackage{fancyhdr}
  
  \usepackage{verbatim}           % by \begin{comment}---\end{comment}
  \usepackage{subfig}                
  \usepackage{lastpage}
  
  \usepackage{fancyhdr}
  \usepackage{float}
  \usepackage{subfig}
  
  \floatstyle{ruled}
  \newfloat{program}{thp}{lop}   
  
  \floatname{program}{Program}
  \cfoot{\ }  
  \renewcommand{\headrulewidth}{0pt} 
  
  \renewcommand{\footrulewidth}{0pt}
  \title{Applying a} 
  </code></pre>
  
  <p>What could be the cause of the problem?</p>