<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -52,7 +52,7 @@ module Prawn
     # (See also: Prawn::Images::PNG , Prawn::Images::JPG)
     # 
     def image(file, options={})     
-      Prawn.verify_options [:at,:position, :height, :width, :scale, :fit], options
+      Prawn.verify_options [:at, :position, :vposition, :height, :width, :scale, :fit], options
       
       if file.respond_to?(:read)
         image_content = file.read
@@ -87,6 +87,7 @@ module Prawn
 
       # find where the image will be placed and how big it will be  
       w,h = calc_image_dimensions(info, options)
+      
       if options[:at]       
         x,y = translate(options[:at]) 
       else                  
@@ -120,7 +121,15 @@ module Prawn
       when Numeric
         options[:position] + bounds.absolute_left
       end
-
+      options[:vposition] ||= :top
+      y = case options[:vposition]
+      when :top
+        bounds.absolute_top
+      when :center
+        bounds.absolute_top - (bounds.height - h) / 2.0
+      when :bottom
+        bounds.absolute_bottom + h
+      end
       return [x,y]
     end
 </diff>
      <filename>lib/prawn/images.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc678c367065fc53e12baad242010bd1352c5422</id>
    </parent>
  </parents>
  <author>
    <name>Trym Skaar</name>
    <email>ts@skalar.no</email>
  </author>
  <url>http://github.com/sandal/prawn/commit/cd63dfb9424292cc3dcd97dcce0fb55349ce4dc8</url>
  <id>cd63dfb9424292cc3dcd97dcce0fb55349ce4dc8</id>
  <committed-date>2008-10-29T11:44:20-07:00</committed-date>
  <authored-date>2008-10-29T11:44:20-07:00</authored-date>
  <message>Added :vposition argument to image()</message>
  <tree>ebfccc1e20eccddd88e94a47373fa3662beb19e6</tree>
  <committer>
    <name>Trym Skaar</name>
    <email>ts@skalar.no</email>
  </committer>
</commit>
