Extend image attachment to any type of file;
Remove POST method handler;
Code cleanup and simplification