handling image templates from WAR resources