Layout changes and support for gif images