Add support for transparent images.

Signed-off-by: Tyler Menezes <tylermenezes@gmail.com>