Use caching + modals on profile page pictures

ADD - cache for checking if user is online
ADD - modals for profile pictures
DEL - redundant code
MOD - some style changes