scaled down image after download to avoid out of memory error.
added user authentication