gallery uploads fixed