filter image to upload

add logic to filter image file to upload