fix a height normalization issue

Signed-off-by: Antoine Villeret <antoine.villeret@gmail.com>
now accept rgba images
oups ... make it less vebrose