Allow inline images even if an unsuitable format is requested

This patch requires the cairo context to be rendered twice, but this operation should be very cheap (compared to populating the context).