<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>data/images/pigs.jpg</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,12 @@
 $LOAD_PATH &lt;&lt; File.join(File.dirname(__FILE__), '..', 'lib')
 require &quot;prawn&quot;
    
-Prawn::Document.generate(&quot;image.pdf&quot;) do 
-  filename = File.join(&quot;#{Prawn::BASEDIR}/data/images/stef.jpg&quot;)
-  image filename, :at =&gt; [200, 400]
+Prawn::Document.generate(&quot;image.pdf&quot;, :page_layout =&gt; :landscape) do 
+  pigs = &quot;#{Prawn::BASEDIR}/data/images/pigs.jpg&quot; 
+  image pigs, :at =&gt; [50,550]                                        
+  
+  stef = &quot;#{Prawn::BASEDIR}/data/images/stef.jpg&quot;
+  image stef, :at =&gt; [75, 75]
+  
+  text &quot;Please enjoy the pigs&quot;, :size =&gt; 36, :at =&gt; [200,15]   
 end</diff>
      <filename>examples/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,11 +45,12 @@ module Prawn
       # add a reference to the image object to the current page
       # resource list and give it a label
       label = &quot;I#{next_image_id}&quot;
-      page_xobjects.merge!( label =&gt; image_obj )
+      page_xobjects.merge!( label =&gt; image_obj )   
 
       # add the image to the current page
       instruct = &quot;\nq\n%.3f 0 0 %.3f %.3f %.3f cm\n/%s Do\nQ&quot;
-      add_content instruct % [ image_info.width, image_info.height, x, y, label ]
+      add_content instruct % [ image_info.width, image_info.height, x, 
+                               y - image_info.height, label ]
     end
 
     private
@@ -59,7 +60,7 @@ module Prawn
                 :Subtype    =&gt; :Image,
                 :ColorSpace =&gt; :DeviceRGB,
                 :Filter     =&gt; :DCTDecode,
-                :BitsPerComponent =&gt; 8,
+                :BitsPerComponent =&gt; info.bits,
                 :Width   =&gt; info.width,
                 :Height  =&gt; info.height,
                 :Length  =&gt; size
@@ -76,13 +77,9 @@ module Prawn
       obj
     end
 
-    def image_counter
-      @image_counter ||= 0
-    end
-
     def next_image_id
-      counter = image_counter
-      counter += 1
+      @image_counter ||= 0
+      @image_counter += 1
     end
   end
 end</diff>
      <filename>lib/prawn/images.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50ff78422473262ed2acafa82c8410d12f33265d</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/9dbda1baefbe902488891a527761a9a4258e7193</url>
  <id>9dbda1baefbe902488891a527761a9a4258e7193</id>
  <committed-date>2008-07-24T16:32:07-07:00</committed-date>
  <authored-date>2008-07-24T16:32:07-07:00</authored-date>
  <message>Fix some bugs and make the example much more awesomer</message>
  <tree>893d56267e0155ab17b0a63195004d68562abf13</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
