Image viewer initialization