improved gif scaling and enabled orientation