diff --git a/lib/mixins/images.coffee b/lib/mixins/images.coffee index 2040eea..8d9da44 100644 --- a/lib/mixins/images.coffee +++ b/lib/mixins/images.coffee @@ -49,6 +49,12 @@ module.exports = else h = bh w = bh * ip + + if options.align + if 'center' == options.align + x = x + bw / 2 - w / 2 + else if 'right' == options.align + x = x + bw - w # Set the current y position to below the image if it is in the document flow @y += h if @y is y