We need to apply the alignment to the source rect because the ouput rect fills the destination rect. Fixes #1514