photo upload & log4j support