Bug in Bimage.rotate function solved