Paperclip attachment proccessing by content type