getImageFileProperties should be called statically
Fix strict warning error

Template variable should not be assign by reference.