The psd filter started to become a mess, so do a little refactoring before going on. svn path=/trunk/koffice/; revision=1077424