retain transparency

Option "flatten" removes transparency from generated images.
http://www.imagemagick.org/script/command-line-options.php#layers

And we can dispose of uniform color bug with "colorspace" option
http://stackoverflow.com/questions/13273609/imagemagick-changes-colors-when-converting-pdf-to-images